﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E21 RID: 3617
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ResetMapRotationRegionScRsp : IMessage<ResetMapRotationRegionScRsp>, IMessage, IEquatable<ResetMapRotationRegionScRsp>, IDeepCloneable<ResetMapRotationRegionScRsp>, IBufferMessage
	{
		// Token: 0x17002DFA RID: 11770
		// (get) Token: 0x0600A270 RID: 41584 RVA: 0x001B2A33 File Offset: 0x001B0C33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ResetMapRotationRegionScRsp> Parser
		{
			get
			{
				return ResetMapRotationRegionScRsp._parser;
			}
		}

		// Token: 0x17002DFB RID: 11771
		// (get) Token: 0x0600A271 RID: 41585 RVA: 0x001B2A3A File Offset: 0x001B0C3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ResetMapRotationRegionScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002DFC RID: 11772
		// (get) Token: 0x0600A272 RID: 41586 RVA: 0x001B2A4C File Offset: 0x001B0C4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ResetMapRotationRegionScRsp.Descriptor;
			}
		}

		// Token: 0x0600A273 RID: 41587 RVA: 0x001B2A53 File Offset: 0x001B0C53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ResetMapRotationRegionScRsp()
		{
		}

		// Token: 0x0600A274 RID: 41588 RVA: 0x001B2A5C File Offset: 0x001B0C5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ResetMapRotationRegionScRsp(ResetMapRotationRegionScRsp other) : this()
		{
			this.clientPosVersion_ = other.clientPosVersion_;
			this.retcode_ = other.retcode_;
			this.motion_ = ((other.motion_ != null) ? other.motion_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A275 RID: 41589 RVA: 0x001B2AB4 File Offset: 0x001B0CB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ResetMapRotationRegionScRsp Clone()
		{
			return new ResetMapRotationRegionScRsp(this);
		}

		// Token: 0x17002DFD RID: 11773
		// (get) Token: 0x0600A276 RID: 41590 RVA: 0x001B2ABC File Offset: 0x001B0CBC
		// (set) Token: 0x0600A277 RID: 41591 RVA: 0x001B2AC4 File Offset: 0x001B0CC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ClientPosVersion
		{
			get
			{
				return this.clientPosVersion_;
			}
			set
			{
				this.clientPosVersion_ = value;
			}
		}

		// Token: 0x17002DFE RID: 11774
		// (get) Token: 0x0600A278 RID: 41592 RVA: 0x001B2ACD File Offset: 0x001B0CCD
		// (set) Token: 0x0600A279 RID: 41593 RVA: 0x001B2AD5 File Offset: 0x001B0CD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002DFF RID: 11775
		// (get) Token: 0x0600A27A RID: 41594 RVA: 0x001B2ADE File Offset: 0x001B0CDE
		// (set) Token: 0x0600A27B RID: 41595 RVA: 0x001B2AE6 File Offset: 0x001B0CE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MotionInfo Motion
		{
			get
			{
				return this.motion_;
			}
			set
			{
				this.motion_ = value;
			}
		}

		// Token: 0x0600A27C RID: 41596 RVA: 0x001B2AEF File Offset: 0x001B0CEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ResetMapRotationRegionScRsp);
		}

		// Token: 0x0600A27D RID: 41597 RVA: 0x001B2B00 File Offset: 0x001B0D00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ResetMapRotationRegionScRsp other)
		{
			return other != null && (other == this || (this.ClientPosVersion == other.ClientPosVersion && this.Retcode == other.Retcode && object.Equals(this.Motion, other.Motion) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A27E RID: 41598 RVA: 0x001B2B60 File Offset: 0x001B0D60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ClientPosVersion != 0U)
			{
				num ^= this.ClientPosVersion.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.motion_ != null)
			{
				num ^= this.Motion.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A27F RID: 41599 RVA: 0x001B2BCE File Offset: 0x001B0DCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A280 RID: 41600 RVA: 0x001B2BD6 File Offset: 0x001B0DD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A281 RID: 41601 RVA: 0x001B2BE0 File Offset: 0x001B0DE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this.ClientPosVersion != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.ClientPosVersion);
			}
			if (this.motion_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.Motion);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A282 RID: 41602 RVA: 0x001B2C58 File Offset: 0x001B0E58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ClientPosVersion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ClientPosVersion);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.motion_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Motion);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A283 RID: 41603 RVA: 0x001B2CC8 File Offset: 0x001B0EC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ResetMapRotationRegionScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ClientPosVersion != 0U)
			{
				this.ClientPosVersion = other.ClientPosVersion;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.motion_ != null)
			{
				if (this.motion_ == null)
				{
					this.Motion = new MotionInfo();
				}
				this.Motion.MergeFrom(other.Motion);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A284 RID: 41604 RVA: 0x001B2D44 File Offset: 0x001B0F44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A285 RID: 41605 RVA: 0x001B2D50 File Offset: 0x001B0F50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 72U)
					{
						if (num != 90U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.motion_ == null)
							{
								this.Motion = new MotionInfo();
							}
							input.ReadMessage(this.Motion);
						}
					}
					else
					{
						this.ClientPosVersion = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003EBE RID: 16062
		private static readonly MessageParser<ResetMapRotationRegionScRsp> _parser = new MessageParser<ResetMapRotationRegionScRsp>(() => new ResetMapRotationRegionScRsp());

		// Token: 0x04003EBF RID: 16063
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003EC0 RID: 16064
		public const int ClientPosVersionFieldNumber = 9;

		// Token: 0x04003EC1 RID: 16065
		private uint clientPosVersion_;

		// Token: 0x04003EC2 RID: 16066
		public const int RetcodeFieldNumber = 6;

		// Token: 0x04003EC3 RID: 16067
		private uint retcode_;

		// Token: 0x04003EC4 RID: 16068
		public const int MotionFieldNumber = 11;

		// Token: 0x04003EC5 RID: 16069
		private MotionInfo motion_;
	}
}
